package com.qc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.qc.dao.SkillDao;
import com.qc.entity.SkillEntity;
import com.qc.entity.SkillEntityVo;
import com.qc.service.SkillService;

@SuppressWarnings("rawtypes")
@Service("skillService")
public class SkillServiceImpl implements SkillService{

	@Resource(name="skillDao")
    private SkillDao skillDao;
	
	@Override
	public int getListSkillCount(String name) {

		return skillDao.getListSkillCount(name);
	}

	@Override
	public List getAllSkill(String name, int pageNo, int pageSize) {

		return skillDao.getAllSkill(name, pageNo, pageSize);
	}

	@Override
	public int saveSkill(SkillEntity skillEntity) {

		return skillDao.saveSkill(skillEntity);
	}

	@Override
	public int deleteSkillId(long id) {

		return skillDao.deleteSkillId(id);
	}

	@Override
	public int updateSkillId(SkillEntity skillEntity) {

		return skillDao.updateSkillId(skillEntity);
	}

	@Override
	public List getAllSkillParent() {

		return skillDao.getAllSkillParent();
	}

	@Override
	public int getListSecSkillCount(String name) {

		return skillDao.getListSecSkillCount(name);
	}

	@Override
	public List getAllSecSkill(String name, int pageNo, int pageSize) {

		return skillDao.getAllSecSkill(name, pageNo, pageSize);
	}

	@Override
	public int saveSecSkill(SkillEntityVo skillEntityVo) {

		return skillDao.saveSecSkill(skillEntityVo);
	}

	@Override
	public int deleteSecSkillId(long id) {

		return skillDao.deleteSecSkillId(id);
	}

	@Override
	public int updateSecSkillId(SkillEntityVo skillEntityVo) {

		return skillDao.updateSecSkillId(skillEntityVo);
	}

}
